<!DOCTYPE html>
<html>
<head>
	<title>测试页面</title>
	<script type="text/javascript">
	this.ctx="";
	</script>
	<script type="text/javascript" src="/bower_components/requirejs/require.js" 
	data-main="/static/app" data-bootstrap-modules="['test/TestModule']">
	</script>	
	<link rel="stylesheet" type="text/css" href="/static/css/controls.css">
	<style type="text/css">
		[ng-cloak]{
			display: none;
		}
	</style>	
</head>
<body  ng-controller="Controller1">
	<form  name="StudentForm" >
		id:<input type="text" ng-model="student.studentId" >	
		name:<input type="text" ng-model="student.studentName" name="studentName">
		nm:<input type="text" ng-model="student.studentNm"   name="studentNm">
		age:<input type="text" ng-model="student.age">
	</form>
	<button ng-click="selectStudent()">查询信息</button>
	<button ng-click="createStudent()">保存信息</button>
	<button ng-click="updateStudent()">更新信息</button>
	<button ng-click="deleteStudent()">删除信息</button>
	
	 <g-data-source source-name="student" url="/business/select" page ="true"  allow-auto-load="true"> 
	</g-data-source> 
 <hr>
		搜索栏:
		<input type="text" ng-model="search.studentName">
		<input type="text" ng-model="search.studentNm">
		<button ng-click="searchStudent()">搜索</button>
		<button ng-click="lookDtail()">查看详细</button>
		<hr> 
		<!-- <p ng-repeat="student in students">
			学生姓名:{{student.studentName}}
			学生编号:{{student.studentNm}}
		</p> -->
		<g-pagination-navi source-name="student"></g-pagination-navi>
		<g-pagination-size source-name="student"></g-pagination-size>
		<g-data-grid data-source-name="student" data-on-load-success="studentLoadSuccess(grid,source)">
			
		<g-checkbox-column></g-checkbox-column>
			<g-column >
				<g-column-tmpl>
					<button ng-click="grid.actions.removeStudent(row)">删除</button> 
					<g-action-remove>删除</g-action-remove>
				</g-column-tmpl>
			</g-column> 
			<g-column data="studentName"  align="center">姓名</g-column>
			<g-column data="studentNm"    align="center">编号</g-column>
		</g-data-grid> 
		
</body>
</html>
